package cn.com.xinjinfu.pdoulcProduct.entity;

import java.io.Serializable;
import java.util.List;


/**
 * 登录成功用户账户信息（包括用户信息CurrUser）
 * Created by android-adt on 2016/1/15.
 */
public class User implements Serializable{

    private double balance;           //余额
    private double beRecievedIncome;  //待收收益
    private int code;                 //错误码
    private int bank;                 //是否绑定过银行卡
    private CurrUser currUser;            //用户对象
    private double demandAssert;      //活期总资产
    private String msg;
    private String bank_code;
    private String bank_status;
    private String bank_name;
    private String account;
    private String shareCode;        //用户邀请码
    private double termAssert;       //定期总资产
    private double totalAssert;      //账户总资产
    private double totalIncome;      //累计收益
    private double yDayIncome;       //昨日收益
    private double day_amt;
    private double month_amt;
    private double single_amt;
    private List<UserBank> userBank;

    public double getDay_amt() {
        return day_amt;
    }

    public void setDay_amt(double day_amt) {
        this.day_amt = day_amt;
    }

    public double getMonth_amt() {
        return month_amt;
    }

    public void setMonth_amt(double month_amt) {
        this.month_amt = month_amt;
    }

    public double getSingle_amt() {
        return single_amt;
    }

    public void setSingle_amt(double single_amt) {
        this.single_amt = single_amt;
    }

    public String getBank_status() {
        return bank_status;
    }

    public void setBank_status(String bank_status) {
        this.bank_status = bank_status;
    }

    public int getBank() {
        return bank;
    }

    public void setBank(int bank) {
        this.bank = bank;
    }

    public String getBank_code() {
        return bank_code;
    }

    public void setBank_code(String bank_code) {
        this.bank_code = bank_code;
    }

    public String getBank_name() {
        return bank_name;
    }

    public void setBank_name(String bank_name) {
        this.bank_name = bank_name;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public List<UserBank> getUserBank() {
        return userBank;
    }

    public void setUserBank(List<UserBank> userBank) {
        this.userBank = userBank;
    }

    public String getShareCode() {
        return shareCode;
    }
    public void setShareCode(String shareCode) {
        this.shareCode = shareCode;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public double getBeRecievedIncome() {
        return beRecievedIncome;
    }

    public void setBeRecievedIncome(double beRecievedIncome) {
        this.beRecievedIncome = beRecievedIncome;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public double getDemandAssert() {
        return demandAssert;
    }

    public void setDemandAssert(double demandAssert) {
        this.demandAssert = demandAssert;
    }

    public CurrUser getCurrUser() {
        return currUser;
    }

    public void setCurrUser(CurrUser currUser) {
        this.currUser = currUser;
    }

    public double getTermAssert() {
        return termAssert;
    }

    public void setTermAssert(double termAssert) {
        this.termAssert = termAssert;
    }

    public double getTotalAssert() {
        return totalAssert;
    }

    public void setTotalAssert(double totalAssert) {
        this.totalAssert = totalAssert;
    }

    public double getTotalIncome() {
        return totalIncome;
    }

    public void setTotalIncome(double totalIncome) {
        this.totalIncome = totalIncome;
    }

    public double getyDayIncome() {
        return yDayIncome;
    }

    public void setyDayIncome(double yDayIncome) {
        this.yDayIncome = yDayIncome;
    }

    @Override
    public String toString() {
        return "User{" +
                "balance=" + balance +
                ", beRecievedIncome=" + beRecievedIncome +
                ", code=" + code +
                ", bank=" + bank +
                ", currUser=" + currUser +
                ", demandAssert=" + demandAssert +
                ", msg='" + msg + '\'' +
                ", bank_code='" + bank_code + '\'' +
                ", bank_status='" + bank_status + '\'' +
                ", bank_name='" + bank_name + '\'' +
                ", account='" + account + '\'' +
                ", shareCode='" + shareCode + '\'' +
                ", termAssert=" + termAssert +
                ", totalAssert=" + totalAssert +
                ", totalIncome=" + totalIncome +
                ", yDayIncome=" + yDayIncome +
                ", day_amt=" + day_amt +
                ", month_amt=" + month_amt +
                ", single_amt=" + single_amt +
                ", userBank=" + userBank +
                '}';
    }

    public static class UserBank{
        private String account;
        private String accountName;
        private String bankName;
        private String subAccount;

        public String getAccount() {
            return account;
        }

        public void setAccount(String account) {
            this.account = account;
        }

        public String getAccountName() {
            return accountName;
        }

        public void setAccountName(String accountName) {
            this.accountName = accountName;
        }

        public String getBankName() {
            return bankName;
        }

        public void setBankName(String bankName) {
            this.bankName = bankName;
        }

        public String getSubAccount() {
            return subAccount;
        }

        public void setSubAccount(String subAccount) {
            this.subAccount = subAccount;
        }

        @Override
        public String toString() {
            return "UserBank{" +
                    "account='" + account + '\'' +
                    ", accountName='" + accountName + '\'' +
                    ", bankName='" + bankName + '\'' +
                    ", subAccount='" + subAccount + '\'' +
                    '}';
        }
    }
}
